﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Fishpark.PdfWriter.Linearisation
{
    class CrossReferenceEntry
    {
        // Private fields
        // ==============
        #region Private fields
        private PdfObjectReference _objectReference;
        private long _location;
        #endregion



        // Public properties
        // =================
        #region Public properties
        /// <summary>
        /// Retrieves the object reference for this entry.
        /// </summary>
        public PdfObjectReference ObjectReference
        {
            get { return _objectReference; }
        }

        /// <summary>
        /// Retrieves the location of the object within the source file stream.
        /// </summary>
        public long Location
        {
            get { return _location; }
        }
        #endregion



        // Public constructor
        // ==================
        #region Public constructor
        /// <summary>
        /// Constructs a new CrossReferenceEntry instance.
        /// </summary>
        /// <param name="objectReference">The object reference</param>
        /// <param name="location">The location of the object within the source file stream</param>
        public CrossReferenceEntry(PdfObjectReference objectReference, long location)
        {
            _objectReference = objectReference;
            _location = location;
        }
        #endregion

    } // CrossReferenceEntry class
}
